package org.smartboot.sosa.rpc;

import org.smartboot.sosa.core.lang.ToString;

/**
 * RPC通信数据元
 * 
 * @author Seer
 * @version RpcUnit.java, v 0.1 2015年11月24日 上午10:38:52 Seer Exp.
 */
public final class RpcUnit<T> extends ToString {
	/** 通信数据关联的会话 */
	private Session session;
	/** 通信数据实体 */
	private T unit;

	/**
	 * Getter method for property <tt>session</tt>.
	 *
	 * @return property value of session
	 */
	public Session getSession() {
		return session;
	}

	/**
	 * Setter method for property <tt>session</tt>.
	 *
	 * @param session
	 *            value to be assigned to property session
	 */
	public void setSession(Session session) {
		this.session = session;
	}

	/**
	 * Getter method for property <tt>unit</tt>.
	 *
	 * @return property value of unit
	 */
	public final T getUnit() {
		return unit;
	}

	/**
	 * Setter method for property <tt>unit</tt>.
	 *
	 * @param unit
	 *            value to be assigned to property unit
	 */
	public final void setUnit(T unit) {
		this.unit = unit;
	}

}